import { Behaviour } from "../engine/Behaviour";
import { Transform } from "../engine/Transform";
import { number } from "../engine/validators/number";
import { getGameObjectById } from "../engine";
import { Display } from "./Display";

export class ButtonClick_Cancel extends Behaviour {


    onStart() {
        this.gameObject.onClick = () => {
             console.log(this.gameObject.id);
             getGameObjectById('UI_hintFrame_shop').getBehaviour(Display).IsActive=false;
             getGameObjectById('UI_hintFrame_shop_cancel').getBehaviour(Display).IsActive=false;
             getGameObjectById('UI_money_decoration').getBehaviour(Display).IsActive=false;
             getGameObjectById('Text_Title_buy').getBehaviour(Display).IsActive=false;
             getGameObjectById('Text_CannotBuy').getBehaviour(Display).IsActive=false;
        };
    }

    onTick(duringTime: number) {

    }
}
